<<<<<<< HEAD
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            height: 200px;
            width: 200px;
            border: 1px solid darkred;
        }
    </style>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        window.onload = function () {
        	let a = '';
        	let oTex = document.getElementById('text1');
    //每次完成函数之后都执行以下apply即可
          function apply() {
            oTex.value =a ;
          }
    //定时器
          function $interval(fn,time){
          	setInterval(fn,time);
          	apply()
          }
	        $interval(function () {
		        a += '|';
		        apply();
	        },100)

        }
        //ajax---
        // $.ajax({
	     //    url:'1.txt',
	     //    dataType:'json',
	     //    success(arr){
		 //        alert(arr)
	     //    }
        // })
    </script>
</head>
<body>

<input type="text" id="text1">
</body>
<script>

</script>
=======
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            height: 200px;
            width: 200px;
            border: 1px solid darkred;
        }
    </style>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        window.onload = function () {
        	let a = '';
        	let oTex = document.getElementById('text1');
    //每次完成函数之后都执行以下apply即可
          function apply() {
            oTex.value =a ;
          }
    //定时器
          function $interval(fn,time){
          	setInterval(fn,time);
          	apply()
          }
	        $interval(function () {
		        a += '|';
		        apply();
	        },100)

        }
        //ajax---
        // $.ajax({
	     //    url:'1.txt',
	     //    dataType:'json',
	     //    success(arr){
		 //        alert(arr)
	     //    }
        // })
    </script>
</head>
<body>

<input type="text" id="text1">
</body>
<script>

</script>
>>>>>>> 38ea92c4c79f067b60fb71cd3a0ebf78170fe298
</html>